﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Security.Principal;
using System.Xml.Linq;

namespace COM.Data
{
    public interface IPermissionService
    {
        /// <summary>
        /// 会引发PermissionException异常
        /// </summary>
        /// <param name="enumPermissionName"></param>
        /// <returns></returns>
        bool AllowPermissionItem(string enumPermissionName);
        IPermissionUserPrincipal CurrentUser { get; }
        bool TryTestAllowPermissionItem(string enumPermissionName);
    }

    public interface IPermissionItemService
    {
        bool AllowPermissionItem(string enumPermissionName);
        bool TryTestAllowPermissionItem(string enumPermissionName);
    }
}


